import request from '@/utils/request'

// 查询婚礼邀请信息列表
export function listMarryInfo(query) {
  return request({
    url: '/marry/marryInfo/list',
    method: 'get',
    params: query
  })
}

// 查询婚礼邀请及恋人信息列表
export function listMarryInfoAll() {
  return request({
    url: '/marry/marryInfo/listAll',
    method: 'get'
  })
}

// 查询婚礼邀请信息详细
export function getMarryInfo(id) {
  return request({
    url: '/marry/marryInfo/' + id,
    method: 'get'
  })
}

// 新增婚礼邀请信息
export function addMarryInfo(data) {
  return request({
    url: '/marry/marryInfo',
    method: 'post',
    data: data
  })
}

// 修改婚礼邀请信息
export function updateMarryInfo(data) {
  return request({
    url: '/marry/marryInfo',
    method: 'put',
    data: data
  })
}

// 删除婚礼邀请信息
export function delMarryInfo(id) {
  return request({
    url: '/marry/marryInfo/' + id,
    method: 'delete'
  })
}

// 导出婚礼邀请信息
export function exportMarryInfo(query) {
  return request({
    url: '/marry/marryInfo/export',
    method: 'get',
    params: query
  })
}
